﻿using System;
using System.Data;
using TimKen.DataEntity;
using System.Collections.Generic;

namespace TimKen.BussLogic
{
    /// <summary>
    /// 产品描述业务逻辑操作类
    /// </summary>
    public class PDescriptionManager : BaseManager
    {
        private readonly TimKen.DataAccess.PDescriptionDAO dal = new TimKen.DataAccess.PDescriptionDAO();
        public PDescriptionManager()
		{}
		#region  成员方法

		/// <summary>
		/// 得到最大ID
		/// </summary>
		public int GetMaxId()
		{
			return dal.GetMaxId();
		}

		/// <summary>
		/// 是否存在该记录
		/// </summary>
		public bool Exists(int ProductID,int LanguageID)
		{
			return dal.Exists(ProductID,LanguageID);
		}

		/// <summary>
		/// 增加一条数据
		/// </summary>
		public void Add(TimKen.DataEntity.PDescription model)
		{
			dal.Add(model);
		}

		/// <summary>
		/// 更新一条数据
		/// </summary>
		public void Update(TimKen.DataEntity.PDescription model)
		{
			dal.Update(model);
		}

		/// <summary>
		/// 删除一条数据
		/// </summary>
		public void Delete(int ProductID,int LanguageID)
		{
			
			dal.Delete(ProductID,LanguageID);
		}

		/// <summary>
		/// 得到一个对象实体
		/// </summary>
		public TimKen.DataEntity.PDescription GetModel(int ProductID,int LanguageID)
		{
			
			return dal.GetModel(ProductID,LanguageID);
		}

		/// <summary>
		/// 获得数据列表
		/// </summary>
		public DataSet GetList(string strWhere)
		{
			return dal.GetList(strWhere);
		}

		/// <summary>
		/// 获得数据列表
		/// </summary>
		public DataSet GetAllList()
		{
			return GetList("");
		}
 

		#endregion  成员方法
    }
}
